<!DOCTYPE html>
<!-- saved from url=(0105)https://amr.gd.gov.cn/gdjkz/sajkglpt/jkzyzy/page/jkzviewVice.html?id=a7048628-2cee-11ee-bd77-a416e793859f -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
		
		<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
		<meta name="description" content="">
		<meta name="keywords" content="">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		

		<link rel="stylesheet" href="./健康证查询_files/style2.css">
		<link type="text/css" rel="stylesheet" href="./健康证查询_files/mui.min.css">
		<link type="text/css" rel="stylesheet" href="./健康证查询_files/zdialog.css">
		<link type="text/css" rel="stylesheet" href="./健康证查询_files/mui.dtpicker.css">
		<link type="text/css" rel="stylesheet" href="./健康证查询_files/mui.picker.min.css">
		<script src="./健康证查询_files/jquery-3.2.1.min.js.下载"></script>
		<script src="./健康证查询_files/jquery.cookie.js.下载"></script>
		<script src="./健康证查询_files/zdialog.js.下载"></script>
		<script src="./健康证查询_files/jquery.qrcode.min.js.下载"></script>
		<script src="./健康证查询_files/iruitechCommon.js.下载"></script>
		<script src="./健康证查询_files/mui.min.js.下载"></script>
		<script src="./健康证查询_files/mui.dtpicker.js.下载"></script>
		<script src="./健康证查询_files/mui.picker.min.js.下载"></script>
		<title>健康证查询</title>
	<style>
		.divteImg {
			width: 81px;
			height: 89px;
			margin-top: -16px;
		}

		
		.divteImg img {
			width: 79px;
			height: 87px !important
		}
	</style></head>
	
	<body class="main_bg">
		
			<div class="panel-body">
				<div class="row" style="width: 7rem; height: 4.8rem; margin: 0 auto;  padding: 0; border: 1px solid #F9FAFB; border-radius: 10px; box-shadow: 0px 0px 15px #2a2a2a;">
					<p style="text-align: center; font-size: 16px; margin-top: .2rem;color: inherit;">
						<strong>广东省食品从业人员健康证明</strong>
					</p>

					<div id="card"><div class="row"><div style="float: left; width:75%; padding-left: .3rem;"><div style="font-size: small; margin-top: .1rem;">姓  名：<strong>张三</strong>&nbsp;&nbsp;&nbsp;性&nbsp;&nbsp;&nbsp;&nbsp;别：<strong>你猜</strong></div><div style="font-size: small; margin-top: .2rem;">身份证号码：<strong><span id="idcard">420621196708073847</span></strong></div><div style="font-size: small; ">(或其他有效证明)</div><div style="font-size: small; margin-top: .2rem;z-index:3;">体检单位：<strong>南方科技大学医院</strong></div></div><div style="float: left; width: 25%;"><div class="divteImg" style="margin-top:.4rem"><img class="zhang" src="./健康证查询_files/123-fb2facfb7fb48d5d6b876efbed3e3dcc (1).png" alt=""></div></div></div></div>
					<div id="vaildate"><div class="row" style="float: left;padding-left: .3rem; width:100%;margin-top: .1rem;"><div style="font-size: small;">体检日期：<strong><span id="rq">9999年07月27日</span>（有效期五十年）</strong></div></div></div>
					<!--<div style="text-align: center;margin: 0 auto;display: inline-block; font-size: 10px; width:100%;">
						<strong>广东省市场监督管理局制</strong>
						
					</div>-->
				</div>
				<div class="row" style="width: 7rem; height: 4.8rem; margin: 0 auto;   border: 1px solid #F9FAFB; border-radius: 10px; box-shadow: 0px 0px 15px #2a2a2a;margin-top:5px">
					<img class="zhang" style="width:7rem;height:5rem" src="./健康证查询_files/back.png">
				</div>
				<div id="ecode" class="row" style="width: 330px; margin: 0 auto; margin-top: 15px; border: 0; padding: 0; border: 1px solid #F9FAFB;">
					<div id="code" style="text-align: center;"><img src="./健康证查询_files/1_1011535760_171_86_3_823605860_a95d818f26acb5b4cf1acb5071de33a0.png" width="90" height="90"></div>
				</div> 
				
				
				<div class="row" style="width: 330px; margin: 0 auto; margin-top: 10px; border: 2px solid #f0f2f4; padding: 0;">
					<p style="text-align: center; font-size: 16px; margin-top: 10px; color: #555555">
						<strong>此健康证信息已上报平台</strong>
					</p>


				</div>
				

			</div>
		
	
	<script type="text/javascript" charset="utf-8">
	
	//获取请求中的id值
	var id = GetQueryString("id");
	$(document).ready(function(){
		
		creatCard(id);
	});
	
	function GetQueryString(name){
	     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
	     var r = window.location.search.substr(1).match(reg);//search,查询？后面的参数，并匹配正则
	     if(r!=null)return  decodeURI(r[2]); return null;
	}
		
		
		mui("#pullrefresh").on('tap', 'a', function(event) {
			this.click();
			event.stopPropagation(); //  阻止除了 a标签以外事件的点击
		});

		document.addEventListener('touchstart', function() {
			return false;
		}, true);
		// 禁止选择
		document.oncontextmenu = function() {
			return false;
		};



		// H5 plus事件处理
		var as = 'pop-in'; // 默认窗口动画
		function plusReady() {
			// 隐藏滚动条
			plus.webview.currentWebview().setStyle({
				scrollIndicator: 'none'
			});
			compatibleAdjust();

		}
		if (window.plus) {
			plusReady();
		} else {
			document.addEventListener('plusready', plusReady, false);
		}
		// DOMContentLoaded事件处理
		var _domReady = false;
		document.addEventListener('DOMContentLoaded', function() {
			_domReady = true;
			compatibleAdjust();
		}, false);
		// 兼容性样式调整
		var _adjust = false;

		function compatibleAdjust() {
			if (_adjust || !window.plus || !_domReady) {
				return;
			}
			_adjust = true;
			// iOS平台特效
			if ('iOS' == plus.os.name) {
				document.getElementById('content').className = 'scontent'; // 使用div的滚动条
				if (navigator.userAgent.indexOf('StreamApp') >= 0) { // 在流应用模式下显示返回按钮
					document.getElementById('back').style.visibility = 'visible';
				}
			}
			// 预创建二级窗口
			//	preateWebviews();
			// 关闭启动界面
			plus.navigator.setStatusBarBackground('#0073e6');
			setTimeout(function() {
				plus.navigator.closeSplashscreen();
			}, 200);
		}

		mui.plusReady(function() {
			plus.webview.currentWebview().setStyle({
				scrollIndicator: 'none'
			});
			
			
		});
		
		
		//发送ajax请求，查询id
		function creatCard(id){
			
			$.ajax({
				type : "POST",
				url : getAllUrl() + "app/jkzviewVice",
				data : {
					id : id
				},
				dataType : "",
				async : 'false',
				success : function(data) {
					var name = data.data.name;
					if (data.code == '1') {
						var html = '<div class="row"><div style="float: left; width:75%; padding-left: .3rem;">';
						html +='<div style="font-size: small; margin-top: .1rem;">姓&emsp;&emsp;名：<strong>'+data.data.name+'</strong>&nbsp;&nbsp;&nbsp;性&nbsp;&nbsp;&nbsp;&nbsp;别：<strong>'+(data.data.gender==1?'男':(data.data.gender == '男'?'男':'女'))+'</strong></div>'
						html +='<div style="font-size: small; margin-top: .2rem;">身份证号码：<strong><span id="idcard">'+data.data.idcard+'</span></strong></div>';
						html +='<div style="font-size: small; ">(或其他有效证明)</div>';
					//	html +='<div style="margin-top: 6px;"><div style="font-size: small;">从业类别：<strong>'+(data.data.certTypeName !='null'?data.data.certTypeName:'')+'</strong></div></div>';
						//html +='<div style="margin-top: 6px;"><div style="font-size: small;">从业类别：<strong>食品卫生</strong></div></div>';
						//if(mui.os.android){
						//	html +='<div style="margin-left:4rem;margin-top:-10px;position:absolute;z-index:99;"><img class="zhang" style="width:1.5rem;height:1.5rem;" src="images/fd_zhang.png"></img></div>';
						//}else {
						//	html +='<div style="margin-left:3.5rem;margin-top:-10px;position:absolute;z-index:99;"><img class="zhang" style="width:1.5rem;height:1.5rem;" src="images/fd_zhang.png"></img></div>';
						//}			
						html +='<div style="font-size: small; margin-top: .2rem;z-index:3;">体检单位：<strong>'+data.data.orgName+'</strong></div></div>';	
						var cHead = "";
						if(data.data.capHead != "null" && data.data.capHead != null){
							cHead = data.data.capHead;
						}else{
							cHead = "null";
						}
						var picsrc = getJkzPicURL(cHead !='null'?capHead:data.data.head);
						html +='<div style="float: left; width: 25%;"><div class="divteImg" style="margin-top:.4rem"><img class="zhang" src="'+picsrc+'" alt="" /></div></div>'			
						html +=	'</div>';
						var $card = $('#card');
						$card.html(html);
						$("#code").qrcode({width: 90,height: 90,text: getqrcodeUrl() +"/page/jkzviewVice.html?id="+id});
						var dateHtml = '<div class="row" style="float: left;padding-left: .3rem; width:100%;margin-top: .1rem;"><div style="font-size: small;">';
						dateHtml +='体检日期：<strong><span id="rq">'+data.data.validDate+'</span>（有效期一年）</strong></div></div>';
						var $date = $('#vaildate');
						$date.html(dateHtml);
					} else {
						top.layer.alert(data.msg);
					}
				}
			});
		}
		
		
		
		
		
		/* creatCard(GetQueryString("name"),GetQueryString("head"),GetQueryString("gender"),GetQueryString("idcard"),GetQueryString("certTypeName"),GetQueryString("orgName"),GetQueryString("validDate"),GetQueryString("capHead"),GetQueryString("id"));
		function creatCard(name,head,gender,idcard,certTypeName,orgName,validDate,capHead,id){
			var html = '<div class="row"><div style="float: left; width:75%; padding-left: .3rem;">';
			html +='<div style="font-size: small; margin-top: .1rem;">姓&emsp;&emsp;名：<strong>'+name+'</strong>&nbsp;&nbsp;&nbsp;性&nbsp;&nbsp;&nbsp;&nbsp;别：<strong>'+(gender==1?'男':'女')+'</strong></div>'
			html +='<div style="font-size: small; margin-top: .1rem;">身份证号码：<strong><span id="idcard">'+idcard+'</span></strong></div>';
			html +='<div style="font-size: small; ">(或其他有效证明)</div>';
			html +='<div style="margin-top: 6px;"><div style="font-size: small;">从业类别：<strong>'+(certTypeName !='null'?certTypeName:'')+'</strong></div></div>';
			if(mui.os.android){
				html +='<div style="margin-left:4rem;margin-top:-20px;position:absolute;z-index:99;"><img class="zhang" style="width:1.5rem;height:1.5rem;" src="images/fd_zhang.png"></img></div>';
			}else {
				html +='<div style="margin-left:3.5rem;margin-top:-20px;position:absolute;z-index:99;"><img class="zhang" style="width:1.5rem;height:1.5rem;" src="images/fd_zhang.png"></img></div>';
			}			
			html +='<div style="font-size: small; margin-top: .1rem;z-index:3;">体检单位：<strong>'+orgName+'</strong></div></div>';	
			var cHead = "";
			if(capHead != "null" && capHead != null){
				cHead = capHead;
			}else{
				cHead = "null";
			}
			var picsrc = getJkzPicURL(cHead !='null'?capHead:head);
			html +='<div style="float: left; width: 25%;"><div class="divteImg" style="margin-top:.4rem"><img class="zhang" src="picsrc" alt="" /></div></div>';	
			html +=	'</div>';
			var $card = $('#card');
			$card.html(html);
			$("#code").qrcode({width: 90,height: 90,text: getqrcodeUrl() +"card?id="+id+"&&isQrcode=1"});
			var dateHtml = '<div class="row" style="float: left;padding-left: .3rem; width:100%;margin-top: .1rem;"><div style="font-size: small;">';
			dateHtml +='体检日期：<strong><span id="rq">'+validDate+'</span>（有效期一年）</strong></div></div>';
	
			var $date = $('#vaildate');
			$date.html(dateHtml);
		} */
	</script>

</body></html>